<?php
defined('_JEXEC')or die('Acceso Restringido');
jimport('joomla.application.component.view');
class ContratosViewCertiPagos extends JView{
  function display($tpl = null){
    global $mainframe, $option;
    $params = &$mainframe->getParams();
    $layout = JRequest::getCmd('layout');
    $limitstart = JRequest::getVar('limitstart', 0, '', 'int');
    $params->def('show_pagination_limit', 1);
    $params->def('filter',2);

    jimport('joomla.html.pagination');
    $limit = $mainframe->getUserStateFromRequest('com_contratos.'.$this->getLayout().'.limit', 'limit', $default_limit, 'int');
    $total = & $this->get( 'Total' );
    $pagination = new JPagination($total, $limitstart, $limit);
    $model =& $this->getModel();
    $datos = & $model->getData($pagination->limitstart,$pagination->limit);
    $filter= JRequest::getString('filter');

    $this->assign('datos',$datos);
    $this->assignRef('params', $params);
    $this->assignRef('pagination', $pagination);
    parent::display($tpl);
  }
}
?>